using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.Serialization;
using System.Web.Script.Serialization;
using System.Xml.Serialization;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;

namespace UIWindow.Entitys
{
    /// <summary>生产数据</summary>
    [Serializable]
    [DataObject]
    [Description("生产数据")]
    [BindIndex("IX_ProductionData_BarCode", false, "BarCode")]
    [BindIndex("IX_ProductionData_FrontScanTime", false, "FrontScanTime")]
    [BindTable("ProductionData", Description = "生产数据", ConnName = "MySql", DbType = DatabaseType.None)]
    public partial class ProductionData
    {
        #region 属性
        private Int32 _ID;
        /// <summary>编号</summary>
        [DisplayName("编号")]
        [Description("编号")]
        [DataObjectField(true, true, false, 0)]
        [BindColumn("ID", "编号", "")]
        public Int32 ID { get => _ID; set { if (OnPropertyChanging("ID", value)) { _ID = value; OnPropertyChanged("ID"); } } }

        private String _BarCode;
        /// <summary>电池条码</summary>
        [DisplayName("电池条码")]
        [Description("电池条码")]
        [DataObjectField(false, false, false, 128)]
        [BindColumn("BarCode", "电池条码", "", Master = true)]
        public String BarCode { get => _BarCode; set { if (OnPropertyChanging("BarCode", value)) { _BarCode = value; OnPropertyChanged("BarCode"); } } }

        private String _ProductBatch;
        /// <summary>产品批次</summary>
        [DisplayName("产品批次")]
        [Description("产品批次")]
        [DataObjectField(false, false, true, 128)]
        [BindColumn("ProductBatch", "产品批次", "")]
        public String ProductBatch { get => _ProductBatch; set { if (OnPropertyChanging("ProductBatch", value)) { _ProductBatch = value; OnPropertyChanged("ProductBatch"); } } }

        private String _BatchElectrolyte;
        /// <summary>电解液批次</summary>
        [DisplayName("电解液批次")]
        [Description("电解液批次")]
        [DataObjectField(false, false, true, 128)]
        [BindColumn("BatchElectrolyte", "电解液批次", "")]
        public String BatchElectrolyte { get => _BatchElectrolyte; set { if (OnPropertyChanging("BatchElectrolyte", value)) { _BatchElectrolyte = value; OnPropertyChanged("BatchElectrolyte"); } } }

        private String _ElectrolyteMaterialNumber;
        /// <summary>电解液物料</summary>
        [DisplayName("电解液物料")]
        [Description("电解液物料")]
        [DataObjectField(false, false, true, 64)]
        [BindColumn("ElectrolyteMaterialNumber", "电解液物料", "")]
        public String ElectrolyteMaterialNumber { get => _ElectrolyteMaterialNumber; set { if (OnPropertyChanging("ElectrolyteMaterialNumber", value)) { _ElectrolyteMaterialNumber = value; OnPropertyChanged("ElectrolyteMaterialNumber"); } } }

        private String _MoNumber;
        /// <summary>制令单号</summary>
        [DisplayName("制令单号")]
        [Description("制令单号")]
        [DataObjectField(false, false, true, 64)]
        [BindColumn("MoNumber", "制令单号", "")]
        public String MoNumber { get => _MoNumber; set { if (OnPropertyChanging("MoNumber", value)) { _MoNumber = value; OnPropertyChanged("MoNumber"); } } }

        private String _GroupCode;
        /// <summary>工序代码</summary>
        [DisplayName("工序代码")]
        [Description("工序代码")]
        [DataObjectField(false, false, true, 64)]
        [BindColumn("GroupCode", "工序代码", "")]
        public String GroupCode { get => _GroupCode; set { if (OnPropertyChanging("GroupCode", value)) { _GroupCode = value; OnPropertyChanged("GroupCode"); } } }

        private String _GroupName;
        /// <summary>组别</summary>
        [DisplayName("组别")]
        [Description("组别")]
        [DataObjectField(false, false, true, 64)]
        [BindColumn("GroupName", "组别", "")]
        public String GroupName { get => _GroupName; set { if (OnPropertyChanging("GroupName", value)) { _GroupName = value; OnPropertyChanged("GroupName"); } } }

        private String _GlueNailBatch;
        /// <summary>胶塞批次</summary>
        [DisplayName("胶塞批次")]
        [Description("胶塞批次")]
        [DataObjectField(false, false, true, 128)]
        [BindColumn("GlueNailBatch", "胶塞批次", "")]
        public String GlueNailBatch { get => _GlueNailBatch; set { if (OnPropertyChanging("GlueNailBatch", value)) { _GlueNailBatch = value; OnPropertyChanged("GlueNailBatch"); } } }

        private String _StationNo;
        /// <summary>注液站号</summary>
        [DisplayName("注液站号")]
        [Description("注液站号")]
        [DataObjectField(false, false, true, 32)]
        [BindColumn("StationNo", "注液站号", "")]
        public String StationNo { get => _StationNo; set { if (OnPropertyChanging("StationNo", value)) { _StationNo = value; OnPropertyChanged("StationNo"); } } }

        private String _ForeweighRange;
        /// <summary>前称重范围</summary>
        [DisplayName("前称重范围")]
        [Description("前称重范围")]
        [DataObjectField(false, false, true, 128)]
        [BindColumn("ForeweighRange", "前称重范围", "")]
        public String ForeweighRange { get => _ForeweighRange; set { if (OnPropertyChanging("ForeweighRange", value)) { _ForeweighRange = value; OnPropertyChanged("ForeweighRange"); } } }

        private String _AfterWeighingRange;
        /// <summary>后称重范围</summary>
        [DisplayName("后称重范围")]
        [Description("后称重范围")]
        [DataObjectField(false, false, true, 128)]
        [BindColumn("AfterWeighingRange", "后称重范围", "")]
        public String AfterWeighingRange { get => _AfterWeighingRange; set { if (OnPropertyChanging("AfterWeighingRange", value)) { _AfterWeighingRange = value; OnPropertyChanged("AfterWeighingRange"); } } }

        private String _FluidRateRange;
        /// <summary>注液量范围</summary>
        [DisplayName("注液量范围")]
        [Description("注液量范围")]
        [DataObjectField(false, false, true, 128)]
        [BindColumn("FluidRateRange", "注液量范围", "")]
        public String FluidRateRange { get => _FluidRateRange; set { if (OnPropertyChanging("FluidRateRange", value)) { _FluidRateRange = value; OnPropertyChanged("FluidRateRange"); } } }

        private String _WeighingRehydrationRange;
        /// <summary>变量注液范围</summary>
        [DisplayName("变量注液范围")]
        [Description("变量注液范围")]
        [DataObjectField(false, false, true, 128)]
        [BindColumn("WeighingRehydrationRange", "变量注液范围", "")]
        public String WeighingRehydrationRange { get => _WeighingRehydrationRange; set { if (OnPropertyChanging("WeighingRehydrationRange", value)) { _WeighingRehydrationRange = value; OnPropertyChanged("WeighingRehydrationRange"); } } }

        private String _EquipmentIdentity;
        /// <summary>设备标识</summary>
        [DisplayName("设备标识")]
        [Description("设备标识")]
        [DataObjectField(false, false, true, 128)]
        [BindColumn("EquipmentIdentity", "设备标识", "")]
        public String EquipmentIdentity { get => _EquipmentIdentity; set { if (OnPropertyChanging("EquipmentIdentity", value)) { _EquipmentIdentity = value; OnPropertyChanged("EquipmentIdentity"); } } }

        private String _UserName;
        /// <summary>操作员工</summary>
        [DisplayName("操作员工")]
        [Description("操作员工")]
        [DataObjectField(false, false, true, 128)]
        [BindColumn("UserName", "操作员工", "")]
        public String UserName { get => _UserName; set { if (OnPropertyChanging("UserName", value)) { _UserName = value; OnPropertyChanged("UserName"); } } }

        private DateTime _FrontWeighTime;
        /// <summary>前称重时间</summary>
        [DisplayName("前称重时间")]
        [Description("前称重时间")]
        [DataObjectField(false, false, true, 0)]
        [BindColumn("FrontWeighTime", "前称重时间", "")]
        public DateTime FrontWeighTime { get => _FrontWeighTime; set { if (OnPropertyChanging("FrontWeighTime", value)) { _FrontWeighTime = value; OnPropertyChanged("FrontWeighTime"); } } }

        private DateTime _BackWeighTime;
        /// <summary>后称重时间</summary>
        [DisplayName("后称重时间")]
        [Description("后称重时间")]
        [DataObjectField(false, false, true, 0)]
        [BindColumn("BackWeighTime", "后称重时间", "")]
        public DateTime BackWeighTime { get => _BackWeighTime; set { if (OnPropertyChanging("BackWeighTime", value)) { _BackWeighTime = value; OnPropertyChanged("BackWeighTime"); } } }

        private DateTime _FrontScanTime;
        /// <summary>前扫码时间</summary>
        [DisplayName("前扫码时间")]
        [Description("前扫码时间")]
        [DataObjectField(false, false, true, 0)]
        [BindColumn("FrontScanTime", "前扫码时间", "")]
        public DateTime FrontScanTime { get => _FrontScanTime; set { if (OnPropertyChanging("FrontScanTime", value)) { _FrontScanTime = value; OnPropertyChanged("FrontScanTime"); } } }

        private DateTime _BackScanTime;
        /// <summary>后扫码时间</summary>
        [DisplayName("后扫码时间")]
        [Description("后扫码时间")]
        [DataObjectField(false, false, true, 0)]
        [BindColumn("BackScanTime", "后扫码时间", "")]
        public DateTime BackScanTime { get => _BackScanTime; set { if (OnPropertyChanging("BackScanTime", value)) { _BackScanTime = value; OnPropertyChanged("BackScanTime"); } } }

        private Double _ElectrolyteWaterContent;
        /// <summary>电解液水含量</summary>
        [DisplayName("电解液水含量")]
        [Description("电解液水含量")]
        [DataObjectField(false, false, false, 0)]
        [BindColumn("ElectrolyteWaterContent", "电解液水含量", "")]
        public Double ElectrolyteWaterContent { get => _ElectrolyteWaterContent; set { if (OnPropertyChanging("ElectrolyteWaterContent", value)) { _ElectrolyteWaterContent = value; OnPropertyChanged("ElectrolyteWaterContent"); } } }

        private Double _HydrofluoricAcidContent;
        /// <summary>电解液氢氟酸含量</summary>
        [DisplayName("电解液氢氟酸含量")]
        [Description("电解液氢氟酸含量")]
        [DataObjectField(false, false, false, 0)]
        [BindColumn("HydrofluoricAcidContent", "电解液氢氟酸含量", "")]
        public Double HydrofluoricAcidContent { get => _HydrofluoricAcidContent; set { if (OnPropertyChanging("HydrofluoricAcidContent", value)) { _HydrofluoricAcidContent = value; OnPropertyChanged("HydrofluoricAcidContent"); } } }

        private Double _VacuumBeforeReturningHelium;
        /// <summary>回氦前真空度</summary>
        [DisplayName("回氦前真空度")]
        [Description("回氦前真空度")]
        [DataObjectField(false, false, false, 0)]
        [BindColumn("VacuumBeforeReturningHelium", "回氦前真空度", "")]
        public Double VacuumBeforeReturningHelium { get => _VacuumBeforeReturningHelium; set { if (OnPropertyChanging("VacuumBeforeReturningHelium", value)) { _VacuumBeforeReturningHelium = value; OnPropertyChanged("VacuumBeforeReturningHelium"); } } }

        private Double _VacuumDegreeAfterReturningHelium;
        /// <summary>回氦后真空度</summary>
        [DisplayName("回氦后真空度")]
        [Description("回氦后真空度")]
        [DataObjectField(false, false, false, 0)]
        [BindColumn("VacuumDegreeAfterReturningHelium", "回氦后真空度", "")]
        public Double VacuumDegreeAfterReturningHelium { get => _VacuumDegreeAfterReturningHelium; set { if (OnPropertyChanging("VacuumDegreeAfterReturningHelium", value)) { _VacuumDegreeAfterReturningHelium = value; OnPropertyChanged("VacuumDegreeAfterReturningHelium"); } } }

        private Double _VacuumBeforeFilling;
        /// <summary>注液前真空</summary>
        [DisplayName("注液前真空")]
        [Description("注液前真空")]
        [DataObjectField(false, false, false, 0)]
        [BindColumn("VacuumBeforeFilling", "注液前真空", "")]
        public Double VacuumBeforeFilling { get => _VacuumBeforeFilling; set { if (OnPropertyChanging("VacuumBeforeFilling", value)) { _VacuumBeforeFilling = value; OnPropertyChanged("VacuumBeforeFilling"); } } }

        private Double _PositivePressure;
        /// <summary>注液正压</summary>
        [DisplayName("注液正压")]
        [Description("注液正压")]
        [DataObjectField(false, false, false, 0)]
        [BindColumn("PositivePressure", "注液正压", "")]
        public Double PositivePressure { get => _PositivePressure; set { if (OnPropertyChanging("PositivePressure", value)) { _PositivePressure = value; OnPropertyChanged("PositivePressure"); } } }

        private Double _NegativePressure;
        /// <summary>注液负压</summary>
        [DisplayName("注液负压")]
        [Description("注液负压")]
        [DataObjectField(false, false, false, 0)]
        [BindColumn("NegativePressure", "注液负压", "")]
        public Double NegativePressure { get => _NegativePressure; set { if (OnPropertyChanging("NegativePressure", value)) { _NegativePressure = value; OnPropertyChanged("NegativePressure"); } } }

        private Double _OnePreweight;
        /// <summary>一注前称重</summary>
        [DisplayName("一注前称重")]
        [Description("一注前称重")]
        [DataObjectField(false, false, false, 0)]
        [BindColumn("OnePreweight", "一注前称重", "")]
        public Double OnePreweight { get => _OnePreweight; set { if (OnPropertyChanging("OnePreweight", value)) { _OnePreweight = value; OnPropertyChanged("OnePreweight"); } } }

        private Double _OneAfterweight;
        /// <summary>一注后称重</summary>
        [DisplayName("一注后称重")]
        [Description("一注后称重")]
        [DataObjectField(false, false, false, 0)]
        [BindColumn("OneAfterweight", "一注后称重", "")]
        public Double OneAfterweight { get => _OneAfterweight; set { if (OnPropertyChanging("OneAfterweight", value)) { _OneAfterweight = value; OnPropertyChanged("OneAfterweight"); } } }

        private Double _Preweight;
        /// <summary>前称重量</summary>
        [DisplayName("前称重量")]
        [Description("前称重量")]
        [DataObjectField(false, false, false, 0)]
        [BindColumn("Preweight", "前称重量", "")]
        public Double Preweight { get => _Preweight; set { if (OnPropertyChanging("Preweight", value)) { _Preweight = value; OnPropertyChanged("Preweight"); } } }

        private Double _Afterweight;
        /// <summary>后称重量</summary>
        [DisplayName("后称重量")]
        [Description("后称重量")]
        [DataObjectField(false, false, false, 0)]
        [BindColumn("Afterweight", "后称重量", "")]
        public Double Afterweight { get => _Afterweight; set { if (OnPropertyChanging("Afterweight", value)) { _Afterweight = value; OnPropertyChanged("Afterweight"); } } }

        private Double _RehydrationWeighing;
        /// <summary>补液称重</summary>
        [DisplayName("补液称重")]
        [Description("补液称重")]
        [DataObjectField(false, false, false, 0)]
        [BindColumn("RehydrationWeighing", "补液称重", "")]
        public Double RehydrationWeighing { get => _RehydrationWeighing; set { if (OnPropertyChanging("RehydrationWeighing", value)) { _RehydrationWeighing = value; OnPropertyChanged("RehydrationWeighing"); } } }

        private Double _FluidRateAims;
        /// <summary>目标注液量</summary>
        [DisplayName("目标注液量")]
        [Description("目标注液量")]
        [DataObjectField(false, false, false, 0)]
        [BindColumn("FluidRateAims", "目标注液量", "")]
        public Double FluidRateAims { get => _FluidRateAims; set { if (OnPropertyChanging("FluidRateAims", value)) { _FluidRateAims = value; OnPropertyChanged("FluidRateAims"); } } }

        private Double _FluidRate;
        /// <summary>实际注液量</summary>
        [DisplayName("实际注液量")]
        [Description("实际注液量")]
        [DataObjectField(false, false, false, 0)]
        [BindColumn("FluidRate", "实际注液量", "")]
        public Double FluidRate { get => _FluidRate; set { if (OnPropertyChanging("FluidRate", value)) { _FluidRate = value; OnPropertyChanged("FluidRate"); } } }

        private Double _FluidInjectionVolume;
        /// <summary>补液注液量</summary>
        [DisplayName("补液注液量")]
        [Description("补液注液量")]
        [DataObjectField(false, false, false, 0)]
        [BindColumn("FluidInjectionVolume", "补液注液量", "")]
        public Double FluidInjectionVolume { get => _FluidInjectionVolume; set { if (OnPropertyChanging("FluidInjectionVolume", value)) { _FluidInjectionVolume = value; OnPropertyChanged("FluidInjectionVolume"); } } }

        private Double _DeviationValue;
        /// <summary>偏差值</summary>
        [DisplayName("偏差值")]
        [Description("偏差值")]
        [DataObjectField(false, false, false, 0)]
        [BindColumn("DeviationValue", "偏差值", "")]
        public Double DeviationValue { get => _DeviationValue; set { if (OnPropertyChanging("DeviationValue", value)) { _DeviationValue = value; OnPropertyChanged("DeviationValue"); } } }

        private Double _Ownership;
        /// <summary>保有量</summary>
        [DisplayName("保有量")]
        [Description("保有量")]
        [DataObjectField(false, false, false, 0)]
        [BindColumn("Ownership", "保有量", "")]
        public Double Ownership { get => _Ownership; set { if (OnPropertyChanging("Ownership", value)) { _Ownership = value; OnPropertyChanged("Ownership"); } } }

        private Double _LossAfterFormation;
        /// <summary>化成前后电解液损失量</summary>
        [DisplayName("化成前后电解液损失量")]
        [Description("化成前后电解液损失量")]
        [DataObjectField(false, false, false, 0)]
        [BindColumn("LossAfterFormation", "化成前后电解液损失量", "")]
        public Double LossAfterFormation { get => _LossAfterFormation; set { if (OnPropertyChanging("LossAfterFormation", value)) { _LossAfterFormation = value; OnPropertyChanged("LossAfterFormation"); } } }

        private Boolean _MesUpdateMode;
        /// <summary>MES上传模式</summary>
        [DisplayName("MES上传模式")]
        [Description("MES上传模式")]
        [DataObjectField(false, false, false, 0)]
        [BindColumn("MesUpdateMode", "MES上传模式", "")]
        public Boolean MesUpdateMode { get => _MesUpdateMode; set { if (OnPropertyChanging("MesUpdateMode", value)) { _MesUpdateMode = value; OnPropertyChanged("MesUpdateMode"); } } }

        private Boolean _MESOnline;
        /// <summary>MES在线</summary>
        [DisplayName("MES在线")]
        [Description("MES在线")]
        [DataObjectField(false, false, false, 0)]
        [BindColumn("MESOnline", "MES在线", "")]
        public Boolean MESOnline { get => _MESOnline; set { if (OnPropertyChanging("MESOnline", value)) { _MESOnline = value; OnPropertyChanged("MESOnline"); } } }

        private Int32 _Cycles;
        /// <summary>循环次数</summary>
        [DisplayName("循环次数")]
        [Description("循环次数")]
        [DataObjectField(false, false, false, 0)]
        [BindColumn("Cycles", "循环次数", "")]
        public Int32 Cycles { get => _Cycles; set { if (OnPropertyChanging("Cycles", value)) { _Cycles = value; OnPropertyChanged("Cycles"); } } }

        private Int32 _NGType;
        /// <summary>NG类型</summary>
        [DisplayName("NG类型")]
        [Description("NG类型")]
        [DataObjectField(false, false, false, 0)]
        [BindColumn("NGType", "NG类型", "")]
        public Int32 NGType { get => _NGType; set { if (OnPropertyChanging("NGType", value)) { _NGType = value; OnPropertyChanged("NGType"); } } }

        private Int32 _CupNumber;
        /// <summary>注液杯</summary>
        [DisplayName("注液杯")]
        [Description("注液杯")]
        [DataObjectField(false, false, false, 0)]
        [BindColumn("CupNumber", "注液杯", "")]
        public Int32 CupNumber { get => _CupNumber; set { if (OnPropertyChanging("CupNumber", value)) { _CupNumber = value; OnPropertyChanged("CupNumber"); } } }

        private Enums.NGType _JudgementResultForeweigh;
        /// <summary>注液前判定结果</summary>
        [DisplayName("注液前判定结果")]
        [Description("注液前判定结果")]
        [DataObjectField(false, false, false, 0)]
        [BindColumn("JudgementResultForeweigh", "注液前判定结果", "")]
        public Enums.NGType JudgementResultForeweigh { get => _JudgementResultForeweigh; set { if (OnPropertyChanging("JudgementResultForeweigh", value)) { _JudgementResultForeweigh = value; OnPropertyChanged("JudgementResultForeweigh"); } } }

        private Int32 _Stage;
        /// <summary>工作阶段</summary>
        [DisplayName("工作阶段")]
        [Description("工作阶段")]
        [DataObjectField(false, false, false, 0)]
        [BindColumn("Stage", "工作阶段", "")]
        public Int32 Stage { get => _Stage; set { if (OnPropertyChanging("Stage", value)) { _Stage = value; OnPropertyChanged("Stage"); } } }

        private Enums.NGType _JudgementResultAfterWeighing;
        /// <summary>注液后判定结果</summary>
        [DisplayName("注液后判定结果")]
        [Description("注液后判定结果")]
        [DataObjectField(false, false, false, 0)]
        [BindColumn("JudgementResultAfterWeighing", "注液后判定结果", "")]
        public Enums.NGType JudgementResultAfterWeighing { get => _JudgementResultAfterWeighing; set { if (OnPropertyChanging("JudgementResultAfterWeighing", value)) { _JudgementResultAfterWeighing = value; OnPropertyChanged("JudgementResultAfterWeighing"); } } }

        private Double _VacuumBeforeFillingSetting;
        /// <summary>注液前真空设定值</summary>
        [DisplayName("注液前真空设定值")]
        [Description("注液前真空设定值")]
        [DataObjectField(false, false, false, 0)]
        [BindColumn("VacuumBeforeFillingSetting", "注液前真空设定值", "")]
        public Double VacuumBeforeFillingSetting { get => _VacuumBeforeFillingSetting; set { if (OnPropertyChanging("VacuumBeforeFillingSetting", value)) { _VacuumBeforeFillingSetting = value; OnPropertyChanged("VacuumBeforeFillingSetting"); } } }

        private Double _PositivePressureSetting;
        /// <summary>注液正压设定值</summary>
        [DisplayName("注液正压设定值")]
        [Description("注液正压设定值")]
        [DataObjectField(false, false, false, 0)]
        [BindColumn("PositivePressureSetting", "注液正压设定值", "")]
        public Double PositivePressureSetting { get => _PositivePressureSetting; set { if (OnPropertyChanging("PositivePressureSetting", value)) { _PositivePressureSetting = value; OnPropertyChanged("PositivePressureSetting"); } } }

        private Double _NegativePressureSetting;
        /// <summary>注液负压设定值</summary>
        [DisplayName("注液负压设定值")]
        [Description("注液负压设定值")]
        [DataObjectField(false, false, false, 0)]
        [BindColumn("NegativePressureSetting", "注液负压设定值", "")]
        public Double NegativePressureSetting { get => _NegativePressureSetting; set { if (OnPropertyChanging("NegativePressureSetting", value)) { _NegativePressureSetting = value; OnPropertyChanged("NegativePressureSetting"); } } }

        private Int32 _TimePositivePressure;
        /// <summary>注液正压时间实际值</summary>
        [DisplayName("注液正压时间实际值")]
        [Description("注液正压时间实际值")]
        [DataObjectField(false, false, false, 0)]
        [BindColumn("TimePositivePressure", "注液正压时间实际值", "")]
        public Int32 TimePositivePressure { get => _TimePositivePressure; set { if (OnPropertyChanging("TimePositivePressure", value)) { _TimePositivePressure = value; OnPropertyChanged("TimePositivePressure"); } } }

        private Int32 _TimePositivePressureSetting;
        /// <summary>注液正压时间设定值</summary>
        [DisplayName("注液正压时间设定值")]
        [Description("注液正压时间设定值")]
        [DataObjectField(false, false, false, 0)]
        [BindColumn("TimePositivePressureSetting", "注液正压时间设定值", "")]
        public Int32 TimePositivePressureSetting { get => _TimePositivePressureSetting; set { if (OnPropertyChanging("TimePositivePressureSetting", value)) { _TimePositivePressureSetting = value; OnPropertyChanged("TimePositivePressureSetting"); } } }

        private Int32 _TimeNegativePressure;
        /// <summary>注液负压时间实际值</summary>
        [DisplayName("注液负压时间实际值")]
        [Description("注液负压时间实际值")]
        [DataObjectField(false, false, false, 0)]
        [BindColumn("TimeNegativePressure", "注液负压时间实际值", "")]
        public Int32 TimeNegativePressure { get => _TimeNegativePressure; set { if (OnPropertyChanging("TimeNegativePressure", value)) { _TimeNegativePressure = value; OnPropertyChanged("TimeNegativePressure"); } } }

        private Int32 _TimeNegativePressureSetting;
        /// <summary>注液正负压时间设定值</summary>
        [DisplayName("注液正负压时间设定值")]
        [Description("注液正负压时间设定值")]
        [DataObjectField(false, false, false, 0)]
        [BindColumn("TimeNegativePressureSetting", "注液正负压时间设定值", "")]
        public Int32 TimeNegativePressureSetting { get => _TimeNegativePressureSetting; set { if (OnPropertyChanging("TimeNegativePressureSetting", value)) { _TimeNegativePressureSetting = value; OnPropertyChanged("TimeNegativePressureSetting"); } } }
        #endregion

        #region 获取/设置 字段值
        /// <summary>获取/设置 字段值</summary>
        /// <param name="name">字段名</param>
        /// <returns></returns>
        public override Object this[String name]
        {
            get
            {
                switch (name)
                {
                    case "ID": return _ID;
                    case "BarCode": return _BarCode;
                    case "ProductBatch": return _ProductBatch;
                    case "BatchElectrolyte": return _BatchElectrolyte;
                    case "ElectrolyteMaterialNumber": return _ElectrolyteMaterialNumber;
                    case "MoNumber": return _MoNumber;
                    case "GroupCode": return _GroupCode;
                    case "GroupName": return _GroupName;
                    case "GlueNailBatch": return _GlueNailBatch;
                    case "StationNo": return _StationNo;
                    case "ForeweighRange": return _ForeweighRange;
                    case "AfterWeighingRange": return _AfterWeighingRange;
                    case "FluidRateRange": return _FluidRateRange;
                    case "WeighingRehydrationRange": return _WeighingRehydrationRange;
                    case "EquipmentIdentity": return _EquipmentIdentity;
                    case "UserName": return _UserName;
                    case "FrontWeighTime": return _FrontWeighTime;
                    case "BackWeighTime": return _BackWeighTime;
                    case "FrontScanTime": return _FrontScanTime;
                    case "BackScanTime": return _BackScanTime;
                    case "ElectrolyteWaterContent": return _ElectrolyteWaterContent;
                    case "HydrofluoricAcidContent": return _HydrofluoricAcidContent;
                    case "VacuumBeforeReturningHelium": return _VacuumBeforeReturningHelium;
                    case "VacuumDegreeAfterReturningHelium": return _VacuumDegreeAfterReturningHelium;
                    case "VacuumBeforeFilling": return _VacuumBeforeFilling;
                    case "PositivePressure": return _PositivePressure;
                    case "NegativePressure": return _NegativePressure;
                    case "OnePreweight": return _OnePreweight;
                    case "OneAfterweight": return _OneAfterweight;
                    case "Preweight": return _Preweight;
                    case "Afterweight": return _Afterweight;
                    case "RehydrationWeighing": return _RehydrationWeighing;
                    case "FluidRateAims": return _FluidRateAims;
                    case "FluidRate": return _FluidRate;
                    case "FluidInjectionVolume": return _FluidInjectionVolume;
                    case "DeviationValue": return _DeviationValue;
                    case "Ownership": return _Ownership;
                    case "LossAfterFormation": return _LossAfterFormation;
                    case "MesUpdateMode": return _MesUpdateMode;
                    case "MESOnline": return _MESOnline;
                    case "Cycles": return _Cycles;
                    case "NGType": return _NGType;
                    case "CupNumber": return _CupNumber;
                    case "JudgementResultForeweigh": return _JudgementResultForeweigh;
                    case "Stage": return _Stage;
                    case "JudgementResultAfterWeighing": return _JudgementResultAfterWeighing;
                    case "VacuumBeforeFillingSetting": return _VacuumBeforeFillingSetting;
                    case "PositivePressureSetting": return _PositivePressureSetting;
                    case "NegativePressureSetting": return _NegativePressureSetting;
                    case "TimePositivePressure": return _TimePositivePressure;
                    case "TimePositivePressureSetting": return _TimePositivePressureSetting;
                    case "TimeNegativePressure": return _TimeNegativePressure;
                    case "TimeNegativePressureSetting": return _TimeNegativePressureSetting;
                    default: return base[name];
                }
            }
            set
            {
                switch (name)
                {
                    case "ID": _ID = value.ToInt(); break;
                    case "BarCode": _BarCode = Convert.ToString(value); break;
                    case "ProductBatch": _ProductBatch = Convert.ToString(value); break;
                    case "BatchElectrolyte": _BatchElectrolyte = Convert.ToString(value); break;
                    case "ElectrolyteMaterialNumber": _ElectrolyteMaterialNumber = Convert.ToString(value); break;
                    case "MoNumber": _MoNumber = Convert.ToString(value); break;
                    case "GroupCode": _GroupCode = Convert.ToString(value); break;
                    case "GroupName": _GroupName = Convert.ToString(value); break;
                    case "GlueNailBatch": _GlueNailBatch = Convert.ToString(value); break;
                    case "StationNo": _StationNo = Convert.ToString(value); break;
                    case "ForeweighRange": _ForeweighRange = Convert.ToString(value); break;
                    case "AfterWeighingRange": _AfterWeighingRange = Convert.ToString(value); break;
                    case "FluidRateRange": _FluidRateRange = Convert.ToString(value); break;
                    case "WeighingRehydrationRange": _WeighingRehydrationRange = Convert.ToString(value); break;
                    case "EquipmentIdentity": _EquipmentIdentity = Convert.ToString(value); break;
                    case "UserName": _UserName = Convert.ToString(value); break;
                    case "FrontWeighTime": _FrontWeighTime = value.ToDateTime(); break;
                    case "BackWeighTime": _BackWeighTime = value.ToDateTime(); break;
                    case "FrontScanTime": _FrontScanTime = value.ToDateTime(); break;
                    case "BackScanTime": _BackScanTime = value.ToDateTime(); break;
                    case "ElectrolyteWaterContent": _ElectrolyteWaterContent = value.ToDouble(); break;
                    case "HydrofluoricAcidContent": _HydrofluoricAcidContent = value.ToDouble(); break;
                    case "VacuumBeforeReturningHelium": _VacuumBeforeReturningHelium = value.ToDouble(); break;
                    case "VacuumDegreeAfterReturningHelium": _VacuumDegreeAfterReturningHelium = value.ToDouble(); break;
                    case "VacuumBeforeFilling": _VacuumBeforeFilling = value.ToDouble(); break;
                    case "PositivePressure": _PositivePressure = value.ToDouble(); break;
                    case "NegativePressure": _NegativePressure = value.ToDouble(); break;
                    case "OnePreweight": _OnePreweight = value.ToDouble(); break;
                    case "OneAfterweight": _OneAfterweight = value.ToDouble(); break;
                    case "Preweight": _Preweight = value.ToDouble(); break;
                    case "Afterweight": _Afterweight = value.ToDouble(); break;
                    case "RehydrationWeighing": _RehydrationWeighing = value.ToDouble(); break;
                    case "FluidRateAims": _FluidRateAims = value.ToDouble(); break;
                    case "FluidRate": _FluidRate = value.ToDouble(); break;
                    case "FluidInjectionVolume": _FluidInjectionVolume = value.ToDouble(); break;
                    case "DeviationValue": _DeviationValue = value.ToDouble(); break;
                    case "Ownership": _Ownership = value.ToDouble(); break;
                    case "LossAfterFormation": _LossAfterFormation = value.ToDouble(); break;
                    case "MesUpdateMode": _MesUpdateMode = value.ToBoolean(); break;
                    case "MESOnline": _MESOnline = value.ToBoolean(); break;
                    case "Cycles": _Cycles = value.ToInt(); break;
                    case "NGType": _NGType = value.ToInt(); break;
                    case "CupNumber": _CupNumber = value.ToInt(); break;
                    case "JudgementResultForeweigh": _JudgementResultForeweigh = (Enums.NGType)value.ToInt(); break;
                    case "Stage": _Stage = value.ToInt(); break;
                    case "JudgementResultAfterWeighing": _JudgementResultAfterWeighing = (Enums.NGType)value.ToInt(); break;
                    case "VacuumBeforeFillingSetting": _VacuumBeforeFillingSetting = value.ToDouble(); break;
                    case "PositivePressureSetting": _PositivePressureSetting = value.ToDouble(); break;
                    case "NegativePressureSetting": _NegativePressureSetting = value.ToDouble(); break;
                    case "TimePositivePressure": _TimePositivePressure = value.ToInt(); break;
                    case "TimePositivePressureSetting": _TimePositivePressureSetting = value.ToInt(); break;
                    case "TimeNegativePressure": _TimeNegativePressure = value.ToInt(); break;
                    case "TimeNegativePressureSetting": _TimeNegativePressureSetting = value.ToInt(); break;
                    default: base[name] = value; break;
                }
            }
        }
        #endregion

        #region 字段名
        /// <summary>取得生产数据字段信息的快捷方式</summary>
        public partial class _
        {
            /// <summary>编号</summary>
            public static readonly Field ID = FindByName("ID");

            /// <summary>电池条码</summary>
            public static readonly Field BarCode = FindByName("BarCode");

            /// <summary>产品批次</summary>
            public static readonly Field ProductBatch = FindByName("ProductBatch");

            /// <summary>电解液批次</summary>
            public static readonly Field BatchElectrolyte = FindByName("BatchElectrolyte");

            /// <summary>电解液物料</summary>
            public static readonly Field ElectrolyteMaterialNumber = FindByName("ElectrolyteMaterialNumber");

            /// <summary>制令单号</summary>
            public static readonly Field MoNumber = FindByName("MoNumber");

            /// <summary>工序代码</summary>
            public static readonly Field GroupCode = FindByName("GroupCode");

            /// <summary>组别</summary>
            public static readonly Field GroupName = FindByName("GroupName");

            /// <summary>胶塞批次</summary>
            public static readonly Field GlueNailBatch = FindByName("GlueNailBatch");

            /// <summary>注液站号</summary>
            public static readonly Field StationNo = FindByName("StationNo");

            /// <summary>前称重范围</summary>
            public static readonly Field ForeweighRange = FindByName("ForeweighRange");

            /// <summary>后称重范围</summary>
            public static readonly Field AfterWeighingRange = FindByName("AfterWeighingRange");

            /// <summary>注液量范围</summary>
            public static readonly Field FluidRateRange = FindByName("FluidRateRange");

            /// <summary>变量注液范围</summary>
            public static readonly Field WeighingRehydrationRange = FindByName("WeighingRehydrationRange");

            /// <summary>设备标识</summary>
            public static readonly Field EquipmentIdentity = FindByName("EquipmentIdentity");

            /// <summary>操作员工</summary>
            public static readonly Field UserName = FindByName("UserName");

            /// <summary>前称重时间</summary>
            public static readonly Field FrontWeighTime = FindByName("FrontWeighTime");

            /// <summary>后称重时间</summary>
            public static readonly Field BackWeighTime = FindByName("BackWeighTime");

            /// <summary>前扫码时间</summary>
            public static readonly Field FrontScanTime = FindByName("FrontScanTime");

            /// <summary>后扫码时间</summary>
            public static readonly Field BackScanTime = FindByName("BackScanTime");

            /// <summary>电解液水含量</summary>
            public static readonly Field ElectrolyteWaterContent = FindByName("ElectrolyteWaterContent");

            /// <summary>电解液氢氟酸含量</summary>
            public static readonly Field HydrofluoricAcidContent = FindByName("HydrofluoricAcidContent");

            /// <summary>回氦前真空度</summary>
            public static readonly Field VacuumBeforeReturningHelium = FindByName("VacuumBeforeReturningHelium");

            /// <summary>回氦后真空度</summary>
            public static readonly Field VacuumDegreeAfterReturningHelium = FindByName("VacuumDegreeAfterReturningHelium");

            /// <summary>注液前真空</summary>
            public static readonly Field VacuumBeforeFilling = FindByName("VacuumBeforeFilling");

            /// <summary>注液正压</summary>
            public static readonly Field PositivePressure = FindByName("PositivePressure");

            /// <summary>注液负压</summary>
            public static readonly Field NegativePressure = FindByName("NegativePressure");

            /// <summary>一注前称重</summary>
            public static readonly Field OnePreweight = FindByName("OnePreweight");

            /// <summary>一注后称重</summary>
            public static readonly Field OneAfterweight = FindByName("OneAfterweight");

            /// <summary>前称重量</summary>
            public static readonly Field Preweight = FindByName("Preweight");

            /// <summary>后称重量</summary>
            public static readonly Field Afterweight = FindByName("Afterweight");

            /// <summary>补液称重</summary>
            public static readonly Field RehydrationWeighing = FindByName("RehydrationWeighing");

            /// <summary>目标注液量</summary>
            public static readonly Field FluidRateAims = FindByName("FluidRateAims");

            /// <summary>实际注液量</summary>
            public static readonly Field FluidRate = FindByName("FluidRate");

            /// <summary>补液注液量</summary>
            public static readonly Field FluidInjectionVolume = FindByName("FluidInjectionVolume");

            /// <summary>偏差值</summary>
            public static readonly Field DeviationValue = FindByName("DeviationValue");

            /// <summary>保有量</summary>
            public static readonly Field Ownership = FindByName("Ownership");

            /// <summary>化成前后电解液损失量</summary>
            public static readonly Field LossAfterFormation = FindByName("LossAfterFormation");

            /// <summary>MES上传模式</summary>
            public static readonly Field MesUpdateMode = FindByName("MesUpdateMode");

            /// <summary>MES在线</summary>
            public static readonly Field MESOnline = FindByName("MESOnline");

            /// <summary>循环次数</summary>
            public static readonly Field Cycles = FindByName("Cycles");

            /// <summary>NG类型</summary>
            public static readonly Field NGType = FindByName("NGType");

            /// <summary>注液杯</summary>
            public static readonly Field CupNumber = FindByName("CupNumber");

            /// <summary>注液前判定结果</summary>
            public static readonly Field JudgementResultForeweigh = FindByName("JudgementResultForeweigh");

            /// <summary>工作阶段</summary>
            public static readonly Field Stage = FindByName("Stage");

            /// <summary>注液后判定结果</summary>
            public static readonly Field JudgementResultAfterWeighing = FindByName("JudgementResultAfterWeighing");

            /// <summary>注液前真空设定值</summary>
            public static readonly Field VacuumBeforeFillingSetting = FindByName("VacuumBeforeFillingSetting");

            /// <summary>注液正压设定值</summary>
            public static readonly Field PositivePressureSetting = FindByName("PositivePressureSetting");

            /// <summary>注液负压设定值</summary>
            public static readonly Field NegativePressureSetting = FindByName("NegativePressureSetting");

            /// <summary>注液正压时间实际值</summary>
            public static readonly Field TimePositivePressure = FindByName("TimePositivePressure");

            /// <summary>注液正压时间设定值</summary>
            public static readonly Field TimePositivePressureSetting = FindByName("TimePositivePressureSetting");

            /// <summary>注液负压时间实际值</summary>
            public static readonly Field TimeNegativePressure = FindByName("TimeNegativePressure");

            /// <summary>注液正负压时间设定值</summary>
            public static readonly Field TimeNegativePressureSetting = FindByName("TimeNegativePressureSetting");

            static Field FindByName(String name) => Meta.Table.FindByName(name);
        }

        /// <summary>取得生产数据字段名称的快捷方式</summary>
        public partial class __
        {
            /// <summary>编号</summary>
            public const String ID = "ID";

            /// <summary>电池条码</summary>
            public const String BarCode = "BarCode";

            /// <summary>产品批次</summary>
            public const String ProductBatch = "ProductBatch";

            /// <summary>电解液批次</summary>
            public const String BatchElectrolyte = "BatchElectrolyte";

            /// <summary>电解液物料</summary>
            public const String ElectrolyteMaterialNumber = "ElectrolyteMaterialNumber";

            /// <summary>制令单号</summary>
            public const String MoNumber = "MoNumber";

            /// <summary>工序代码</summary>
            public const String GroupCode = "GroupCode";

            /// <summary>组别</summary>
            public const String GroupName = "GroupName";

            /// <summary>胶塞批次</summary>
            public const String GlueNailBatch = "GlueNailBatch";

            /// <summary>注液站号</summary>
            public const String StationNo = "StationNo";

            /// <summary>前称重范围</summary>
            public const String ForeweighRange = "ForeweighRange";

            /// <summary>后称重范围</summary>
            public const String AfterWeighingRange = "AfterWeighingRange";

            /// <summary>注液量范围</summary>
            public const String FluidRateRange = "FluidRateRange";

            /// <summary>变量注液范围</summary>
            public const String WeighingRehydrationRange = "WeighingRehydrationRange";

            /// <summary>设备标识</summary>
            public const String EquipmentIdentity = "EquipmentIdentity";

            /// <summary>操作员工</summary>
            public const String UserName = "UserName";

            /// <summary>前称重时间</summary>
            public const String FrontWeighTime = "FrontWeighTime";

            /// <summary>后称重时间</summary>
            public const String BackWeighTime = "BackWeighTime";

            /// <summary>前扫码时间</summary>
            public const String FrontScanTime = "FrontScanTime";

            /// <summary>后扫码时间</summary>
            public const String BackScanTime = "BackScanTime";

            /// <summary>电解液水含量</summary>
            public const String ElectrolyteWaterContent = "ElectrolyteWaterContent";

            /// <summary>电解液氢氟酸含量</summary>
            public const String HydrofluoricAcidContent = "HydrofluoricAcidContent";

            /// <summary>回氦前真空度</summary>
            public const String VacuumBeforeReturningHelium = "VacuumBeforeReturningHelium";

            /// <summary>回氦后真空度</summary>
            public const String VacuumDegreeAfterReturningHelium = "VacuumDegreeAfterReturningHelium";

            /// <summary>注液前真空</summary>
            public const String VacuumBeforeFilling = "VacuumBeforeFilling";

            /// <summary>注液正压</summary>
            public const String PositivePressure = "PositivePressure";

            /// <summary>注液负压</summary>
            public const String NegativePressure = "NegativePressure";

            /// <summary>一注前称重</summary>
            public const String OnePreweight = "OnePreweight";

            /// <summary>一注后称重</summary>
            public const String OneAfterweight = "OneAfterweight";

            /// <summary>前称重量</summary>
            public const String Preweight = "Preweight";

            /// <summary>后称重量</summary>
            public const String Afterweight = "Afterweight";

            /// <summary>补液称重</summary>
            public const String RehydrationWeighing = "RehydrationWeighing";

            /// <summary>目标注液量</summary>
            public const String FluidRateAims = "FluidRateAims";

            /// <summary>实际注液量</summary>
            public const String FluidRate = "FluidRate";

            /// <summary>补液注液量</summary>
            public const String FluidInjectionVolume = "FluidInjectionVolume";

            /// <summary>偏差值</summary>
            public const String DeviationValue = "DeviationValue";

            /// <summary>保有量</summary>
            public const String Ownership = "Ownership";

            /// <summary>化成前后电解液损失量</summary>
            public const String LossAfterFormation = "LossAfterFormation";

            /// <summary>MES上传模式</summary>
            public const String MesUpdateMode = "MesUpdateMode";

            /// <summary>MES在线</summary>
            public const String MESOnline = "MESOnline";

            /// <summary>循环次数</summary>
            public const String Cycles = "Cycles";

            /// <summary>NG类型</summary>
            public const String NGType = "NGType";

            /// <summary>注液杯</summary>
            public const String CupNumber = "CupNumber";

            /// <summary>注液前判定结果</summary>
            public const String JudgementResultForeweigh = "JudgementResultForeweigh";

            /// <summary>工作阶段</summary>
            public const String Stage = "Stage";

            /// <summary>注液后判定结果</summary>
            public const String JudgementResultAfterWeighing = "JudgementResultAfterWeighing";

            /// <summary>注液前真空设定值</summary>
            public const String VacuumBeforeFillingSetting = "VacuumBeforeFillingSetting";

            /// <summary>注液正压设定值</summary>
            public const String PositivePressureSetting = "PositivePressureSetting";

            /// <summary>注液负压设定值</summary>
            public const String NegativePressureSetting = "NegativePressureSetting";

            /// <summary>注液正压时间实际值</summary>
            public const String TimePositivePressure = "TimePositivePressure";

            /// <summary>注液正压时间设定值</summary>
            public const String TimePositivePressureSetting = "TimePositivePressureSetting";

            /// <summary>注液负压时间实际值</summary>
            public const String TimeNegativePressure = "TimeNegativePressure";

            /// <summary>注液正负压时间设定值</summary>
            public const String TimeNegativePressureSetting = "TimeNegativePressureSetting";
        }
        #endregion
    }
}